package com.ruoyi.street.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.street.mapper.HouseStreetTMapper;
import com.ruoyi.street.domain.HouseStreetT;
import com.ruoyi.street.service.IHouseStreetTService;

/**
 * 街道办事处Service业务层处理
 * 
 * @author tuyeqi
 * @date 2023-04-19
 */
@Service
public class HouseStreetTServiceImpl implements IHouseStreetTService 
{
    @Autowired
    private HouseStreetTMapper houseStreetTMapper;

    /**
     * 查询街道办事处
     * 
     * @param streetId 街道办事处主键
     * @return 街道办事处
     */
    @Override
    public HouseStreetT selectHouseStreetTByStreetId(Long streetId)
    {
        return houseStreetTMapper.selectHouseStreetTByStreetId(streetId);
    }

    /**
     * 查询街道办事处列表
     * 
     * @param houseStreetT 街道办事处
     * @return 街道办事处
     */
    @Override
    public List<HouseStreetT> selectHouseStreetTList(HouseStreetT houseStreetT)
    {
        return houseStreetTMapper.selectHouseStreetTList(houseStreetT);
    }

    /**
     * 新增街道办事处
     * 
     * @param houseStreetT 街道办事处
     * @return 结果
     */
    @Override
    public int insertHouseStreetT(HouseStreetT houseStreetT)
    {
        return houseStreetTMapper.insertHouseStreetT(houseStreetT);
    }

    /**
     * 修改街道办事处
     * 
     * @param houseStreetT 街道办事处
     * @return 结果
     */
    @Override
    public int updateHouseStreetT(HouseStreetT houseStreetT)
    {
        return houseStreetTMapper.updateHouseStreetT(houseStreetT);
    }

    /**
     * 批量删除街道办事处
     * 
     * @param streetIds 需要删除的街道办事处主键
     * @return 结果
     */
    @Override
    public int deleteHouseStreetTByStreetIds(Long[] streetIds)
    {
        return houseStreetTMapper.deleteHouseStreetTByStreetIds(streetIds);
    }

    /**
     * 删除街道办事处信息
     * 
     * @param streetId 街道办事处主键
     * @return 结果
     */
    @Override
    public int deleteHouseStreetTByStreetId(Long streetId)
    {
        return houseStreetTMapper.deleteHouseStreetTByStreetId(streetId);
    }
}
